package com.zhu.ssm.entity;

import java.util.List;

/**
 * User实体类
 * @author zhu
 *
 */
public class User {
	private Integer userId;
	private String userName;
	private Integer age;
	private Card card;//一个人一张身份证,1对1
	private List<MobilePhone> mobilePhone;//土豪,多个手机,1对多
	
	
	public Integer getUserId() {
		return userId;
	}
	public void setUserId(Integer userId) {
		this.userId = userId;
	}
	public String getUserName() {
		return userName;
	}
	public void setUserName(String userName) {
		this.userName = userName;
	}
	public Integer getAge() {
		return age;
	}
	public void setAge(Integer age) {
		this.age = age;
	}
	
	public Card getCard() {
		return card;
	}
	public void setCard(Card card) {
		this.card = card;
	}
	
	public List<MobilePhone> getMobilePhone() {
		return mobilePhone;
	}
	public void setMobilePhone(List<MobilePhone> mobilePhone) {
		this.mobilePhone = mobilePhone;
	}
	@Override
	public String toString() {
		return "[userName:"+userName+",age:"+age+",card:"+card+",mobilePhone:"+mobilePhone+"]";
	}
	

}
